package com.henanuniversity.controller;

import com.henanuniversity.po.OrderDetailet;
import com.henanuniversity.service.OrderDetailetService;
import com.henanuniversity.service.impl.OrderDetailetServiceImpl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public class OrderDetailetController {
    public Object listOrderDetailetByOrderId(HttpServletRequest request, HttpServletResponse response){
        Integer orderId=Integer.valueOf(request.getParameter("orderId"));
        OrderDetailetService service = new OrderDetailetServiceImpl();
        List<OrderDetailet> orderDetailetsList = service.listOrderDetailetByOrderId(orderId);
        return orderDetailetsList;
    }
}
